/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.warehouse.entity;

import com.thinkgem.jeesite.modules.sys.entity.Office;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.modules.warehouse.entity.Su;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * laborplanEntity
 * @author qrg
 * @version 2017-08-10
 */
public class Laborplan extends DataEntity<Laborplan> {
	
	private static final long serialVersionUID = 1L;
	private Office office;		// office_id
	private Date planDate;		// plan_date
	private Su su;		// su_id
	private String workerType;		// worker_type
	private String planHours;		// plan_hours
	private String planOverTime;		// plan_over_time
	private String actualHours;		// actual_hours
	private String actualOverTime;		// actual_over_time
	private Date beginPlanDate;		// 开始 plan_date
	private Date endPlanDate;		// 结束 plan_date
	
	public Laborplan() {
		super();
	}

	public Laborplan(String id){
		super(id);
	}

	public Office getOffice() {
		return office;
	}

	public void setOffice(Office office) {
		this.office = office;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getPlanDate() {
		return planDate;
	}

	public void setPlanDate(Date planDate) {
		this.planDate = planDate;
	}
	
	public Su getSu() {
		return su;
	}

	public void setSu(Su su) {
		this.su = su;
	}
	
	@Length(min=0, max=64, message="worker_type长度必须介于 0 和 64 之间")
	public String getWorkerType() {
		return workerType;
	}

	public void setWorkerType(String workerType) {
		this.workerType = workerType;
	}
	
	public String getPlanHours() {
		return planHours;
	}

	public void setPlanHours(String planHours) {
		this.planHours = planHours;
	}
	
	public String getPlanOverTime() {
		return planOverTime;
	}

	public void setPlanOverTime(String planOverTime) {
		this.planOverTime = planOverTime;
	}
	
	public String getActualHours() {
		return actualHours;
	}

	public void setActualHours(String actualHours) {
		this.actualHours = actualHours;
	}
	
	public String getActualOverTime() {
		return actualOverTime;
	}

	public void setActualOverTime(String actualOverTime) {
		this.actualOverTime = actualOverTime;
	}
	
	public Date getBeginPlanDate() {
		return beginPlanDate;
	}

	public void setBeginPlanDate(Date beginPlanDate) {
		this.beginPlanDate = beginPlanDate;
	}
	
	public Date getEndPlanDate() {
		return endPlanDate;
	}

	public void setEndPlanDate(Date endPlanDate) {
		this.endPlanDate = endPlanDate;
	}
		
}